<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>CMS管理系统</title>
	<#include "include/base.ftl">
	<#if loginUser.username != 'admin'>
	<!-- <script disable-devtool-auto src='https://cdn.jsdelivr.net/npm/disable-devtool/disable-devtool.min.js'></script> -->
	</#if>
	<script type="text/javascript" src="style/web/js/cookie-util.js?v=${version}"></script>
	<script type="text/javascript" src="style/web/js/index.js?v=${version}"></script>
	<style>
		#sysname{margin-left:1%;position:relative;margin-top:0%;font-size:20px;color:#ffffff;font-weight:600;}
		table span.info, table span.info a{font-size:13px; color:#ffffff; font-weight:600;}
		table span.info a{text-decoration: underline;}
	</style>
</head>
<body class="easyui-layout">
	<!-- begin of header -->
	<div class="base-header"
		data-options="region:'north',border:false,split:true"
		style="scroll:no;height:60px;background-image: url(style/web/images/score_sys_bg.jpg);">
		<table style="width:100%;height:100%" border="0">
			<tr>
				<td style="width:80%" rowspan="2">
					<div id="sysname">
						CMS管理系统
					</div>
				</td>
				<td>
					<span class="info">您好，${loginUser.realname}(${loginUser.username}),</span>
					<span class="info"><a href="javascript:void(0)" onclick="showchangepwdbox();">修改密码</a></span>
				</td>
				<td rowspan="2" valign="middle">
					<span> 
				 		<a href="javascript:logout();" style="text-decoration: initial;">
				 			<img src="style/web/images/score_sys_exit.png" alt="退出" title="退出" style="border:0" />
				 		</a>
					</span>
				</td>
			</tr>
			<tr>
				<td>
					<span class="info">今天是： </span> 
					<span class="info" id="date"></span>
				</td>
			</tr>
		</table>
	</div>
	<!-- end of header -->
	<!-- begin of sidebar -->
	<div class="base-sidebar"
		data-options="region:'west',split:true,border:true,title:'系统功能'" style="width:180px;">
		<div id="menu-box" class="easyui-accordion" fit="true" border="false"
			animate="false" width="180px">
			${treeHtml}
		</div>
	</div>
	<!-- end of sidebar -->
	<!-- begin of main -->
	<div class="base-main" data-options="region:'center'">
		<div id="base-tabs" class="easyui-tabs" data-options="border:false,fit:true,tools:'#tab-tools',toolPosition:'right'">
			<div title="首页" data-options="href:'style/html/default.html',closable:false,iconCls:'icon-tip',cls:'pd3'"></div>
		</div>
		<div id="tab-tools">
			<a href="javascript:;" onclick="reloadTab();" title="刷新当前选項卡" class="easyui-linkbutton" plain="true" iconCls="icon-reload"></a>
		</div>
	</div>
	<!-- end of main -->
	<!-- begin of footer -->
	<div class="base-footer" style="height:30px;background:#225982;padding:0px;overflow:hidden;padding-top:3px;"
		data-options="region:'south',border:true,split:true">
		<font color="#FFFFFF" face="Microsoft JhengHei,Microsoft YaHei,tahoma, Arial, sans-serif" style="font-size:12px;">CopyRight &copy; shanhanyu@163.com&nbsp;&nbsp;版權所有</font>
	</div>
	<!-- end of footer -->
	
	<div id="resetpwd-box" class="easyui-window add-box" title="修改密码" style="width:400px;height:240px;display:none;"  
		        closed="true" modal="true" collapsible="false" minimizable="false" maximizable="false" resizable="false">  
	    <form action="user/modifyPassword" method="post" id="resetpwd-form" autocomplete="off">
	    	<table style="margin: 15px auto;" class="form-table">
	    		<tr>
	    			<th>原始密码</th>
	    			<td>
	    				<input type="password" id="password0" name="password"  class="easyui-textbox add-input" data-options="required:true"/>
	    				<input type="hidden" name="username" value="${loginUser.username}">
	    				<font color="red">*</font>
	    			</td>
	    		</tr>
	    		<tr>
	    			<th>新密码</th>
	    			<td>
	    				<input type="password" id="password1" name="newPassword" class="easyui-textbox add-input" data-options="required:true"/>
	    				<font color="red">*</font>
					</td>
	    		</tr>
	    		<tr>
	    			<th>验证密码</th>
	    			<td>
	    				<input type="password" id="password2" class="easyui-textbox add-input" data-options="required:true"/>
	    				<font color="red">*</font>
					</td>
	    		</tr>
	    	</table>
	    	<br/>
	    	<div style="text-align: center;">
	    		<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-save" onclick="javascript:changepwd();">提交</a>
	    		&nbsp;&nbsp;&nbsp;
				<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#resetpwd-box').dialog('close');">关闭</a>
	    	</div>
	    </form>  
	</div> 
</body>
</html>